package com.itheima.pojo;

/**
 * 连表查询score对应数据封装类
 */
public class Score {
    private Integer id;     //Score表唯一标示
    private String username;//user表name字段
    private String claname;
    private String teaname; //teacher表name字段
    private Integer score;

    public Score() {
    }

    public Score(String username, String claname, String teaname, Integer score) {
        this.username = username;
        this.claname = claname;
        this.teaname = teaname;
        this.score = score;
    }

    public Score(Integer id, String username, String claname, String teaname, Integer score) {
        this.id = id;
        this.username = username;
        this.claname = claname;
        this.teaname = teaname;
        this.score = score;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getClaname() {
        return claname;
    }

    public void setClaname(String claname) {
        this.claname = claname;
    }

    public String getTeaname() {
        return teaname;
    }

    public void setTeaname(String teaname) {
        this.teaname = teaname;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Score{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", claname='" + claname + '\'' +
                ", teaname='" + teaname + '\'' +
                ", score=" + score +
                '}';
    }
}
